<template>
  <div class="tab-bar">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">
          <el-container>
            <el-container>
              <el-aside width="200px">
                <el-menu default-active="2"
                         class="el-menu-vertical-demo"
                         @open="handleOpen"
                         @close="handleClose">
                  <el-menu-item index="1">
                    <i class="el-icon-menu"></i>
                    <span slot="title">概览</span>
                  </el-menu-item>
                  <el-menu-item index="2">
                    <i class="el-icon-menu"></i>
                    <span slot="title">调度单管理</span>
                  </el-menu-item>
                  <el-submenu index="3">
                    <template slot="title">
                      <i class="el-icon-location"></i>
                      <span>设备单管理</span>
                    </template>
                    <el-menu-item-group>
                      <el-menu-item index="3-1">设备列表</el-menu-item>
                      <el-menu-item index="3-2">告警管理</el-menu-item>
                    </el-menu-item-group>
                  </el-submenu>
                  <el-menu-item index="4">
                    <i class="el-icon-menu"></i>
                    <span slot="title">人员管理</span>
                  </el-menu-item>
                  <el-menu-item index="5">
                    <i class="el-icon-setting"></i>
                    <span slot="title">角色管理</span>
                  </el-menu-item>
                </el-menu>
              </el-aside>
              <el-main>
                <schedule-management />
              </el-main>
            </el-container>
          </el-container>
        </el-aside>
      </el-container>
    </el-container>

  </div>
</template>

<script>
export default {
  name: 'TabBar',
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath)
    },
  },
}
</script>

<style lang="less" scoped>
/feDisplacementMap/.el-aside {
  height: 500px;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
  height: 620px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.el-main {
  padding: 0;
  line-height: 30px;
  text-align: left;
}
.app {
  width: 1100px;
  height: 700px;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  .tab-bar {
    height: 650px;
  }
}
</style>
